package com.okaixz.client.task;

import com.okaixz.client.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author 陈大专
 * @time 2025/7/9 8:31
 * @des 签到定时任务
 **/
@Component
@Slf4j
public class QianDaoTask {
    @Autowired
    private IUserService userService;

    @Scheduled(cron = "0 0 0 * * 1")
    public void executeResetQianDao(){
        boolean b = userService.resetQiandao();
        log.info("重置签到结果：{}",b);
    }
//    @Scheduled(cron = "0 * * * * *")
//    public void test(){
//        boolean b = userService.resetQiandao();
//        log.info("重置签到结果：{}",b);
//
//    }
}
